package com.methods;

/**
 * Cat类
 * 描述：继承了Animal类，饿汉式
 * 2017/8/19
 * @author Erik
 * @version 0.1
 * @since JDK1.8.
 * @see com.methods.Animal
 */
public class Cat extends Animal{

    private Cat(){}
    private static Cat cat = new Cat();
    public static Cat getCat(){ return cat;}

    public void cry(){  System.out.println("小猫的叫声：喵喵喵~~~");}
}
